﻿from django.conf.urls.defaults import *

urlpatterns = patterns('',
#    (r'^$', 'app.engine.views.pubEventView'),
    (r'^admin/site/$', 'app.engine.pub.adminSiteConfig'),
    (r'^admin/site/memcache/class/$', 'app.engine.pub.adminClassMemcache'),
    (r'^admin/import/adjust/$', 'app.engine.pub.adminImportAdjust'),
    (r'^admin/events/import/$', 'app.engine.pub.adminImportEvent'),
    (r'^admin/events/create/$', 'app.engine.pub.adminCreateEvent'),
    (r'^admin/events/$', 'app.engine.pub.adminListEvent'),
    (r'^admin/events/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.viewEventInfo'),
    (r'^admin/events/edit/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.adminEditEvent'),
    (r'^admin/events/delete/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.adminDeleteEvent'),
    (r'^admin/events/generate/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.adminGenEvent'),

#action form method
    (r'^admin/events/(?P<action_type>[^\.^/]+)/add/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.adminAddAction'),
    (r'^admin/events/(?P<action_type>[^\.^/]+)/edit/(?P<action_id>[^\.^/]+)/$', 'app.engine.pub.adminEditAction'),
    (r'^admin/events/(?P<action_type>[^\.^/]+)/delete/(?P<action_id>[^\.^/]+)/$', 'app.engine.pub.adminDeleteAction'),
    (r'^admin/events/members/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.adminChoosePlayers'),

    (r'^admin/players/$', 'app.engine.pub.adminListPlayers'),
    (r'^admin/players/page/(?P<page>[^\.^/]+)/$', 'app.engine.pub.adminListPlayers'),
    (r'^admin/players/add/$', 'app.engine.pub.adminAddPlayer'),
    (r'^admin/players/edit/(?P<player_id>[^\.^/]+)/$', 'app.engine.pub.adminEditPlayer'),
    (r'^admin/players/delete/(?P<player_id>[^\.^/]+)/$', 'app.engine.pub.adminDeletePlayer'),
    (r'^admin/players/attend/$', 'app.engine.pub.adminComputeAttend'),

    (r'^admin/loot/edit/(?P<gear_id>[^\.^/]+)/$', 'app.engine.pub.adminEditGear'),
    (r'^admin/loot/add/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.adminAddGear'),
    (r'^admin/loot/delete/(?P<gear_id>[^\.^/]+)/$', 'app.engine.pub.adminDeleteGear'),

    (r'^admin/post/$', 'app.engine.pub.adminCreatePost'),
    (r'^admin/post/(?P<post_id>[^\.^/]+)/$', 'app.engine.pub.adminEditPost'),

    (r'^pub/players/(?P<player_key>[^\.^/]+)/$', 'app.engine.pub.viewPlayerInfo'),
    (r'^pub/players/$','app.engine.pub.viewPlayerScore'),
    (r'^pub/players/page/(?P<page>[^\.^/]+)/$','app.engine.pub.viewPlayerScore'),
    (r'^pub/players/class/(?P<player_class>[^\.^/]+)/$','app.engine.pub.viewPlayerScoreBy'),
    (r'^pub/events/(?P<event_id>[^\.^/]+)/$', 'app.engine.pub.viewEventInfo'),
    (r'^pub/events/$', 'app.engine.pub.viewEventsList'),
    (r'^pub/overview/classimage/$','app.engine.pub.overviewClassImage'),
    (r'^pub/overview/class/$','app.engine.pub.overviewClassChart'),
    (r'^pub/overview/score/$','app.engine.pub.overviewScore'),
    (r'^pub/gears/$','app.engine.pub.viewGears'),
    

    (r'^forum/help/dkp/$','app.forum.views.dkpHelp'),
    (r'^forum/help/bbcode/$','app.forum.views.forumHelp'),
    (r'^forum/register/$','app.forum.views.Register'),
    (r'^forum/members/info/$','app.forum.views.MemberInfo'),
#    (r'^forum/members/info/(?P<member_id>[^\.^/]+)/$','app.forum.views.MemberInfo'),
    (r'^forum/topic/view/(?P<topic_id>[^\.^/]+)/$','app.forum.views.ViewTopic'),
    (r'^forum/topic/add/$','app.forum.views.CreateTopic'),
    (r'^forum/topic/edit/(?P<topic_id>[^\.^/]+)/$','app.forum.views.EditTopic'),
    (r'^forum/topic/del/(?P<topic_id>[^\.^/]+)/$','app.forum.views.DelTopic'),
    (r'^forum/reply/del/(?P<reply_id>[^\.^/]+)/$','app.forum.views.DelReply'),
    (r'^forum/topic/$','app.forum.views.index'),
    (r'^forum/topic/page/(?P<page>[^\.^/]+)/$','app.forum.views.index'),
    (r'^forum/help/$', 'app.forum.views.helpme'),
    (r'^member/avaster/(?P<member_id>[^\.^/]+)/$', 'app.forum.views.getavaster'),
    (r'^member/thumbnail/(?P<member_id>[^\.^/]+)/$', 'app.forum.views.getthumbnail'),
#    (r'^admin/cache/$','app.engine.views.adminSetCache'),
#    (r'^admin/memcache/$','app.engine.views.overviewCache'),
    (r'^pub/export/data/$','app.engine.pub.adminExportCurrent'),
    (r'^pub/score/$', 'app.engine.pub.viewScoreInfo'),
    (r'^addons/$', 'app.addons.views.ViewAddons'),
    (r'^addons/create/$', 'app.addons.views.CreateAddon'),
    (r'^addons/delete/(?P<addon_id>[^\.^/]+)/$', 'app.addons.views.DelAddon'),
    (r'^addons/edit/(?P<addon_id>[^\.^/]+)/$', 'app.addons.views.EditAddon'),
    (r'^addons/(?P<viewby>[^\.^/]+)/(?P<value>[^\.^/]+)/$', 'app.addons.views.viewAddonsBy'),
    (r'^addon/pic/(?P<addon_id>[^\.^/]+)/$', 'app.addons.views.getpic'),
    (r'^drop/$', 'app.engine.pub.dropdata'),
    (r'^$', 'app.forum.views.index'),
    (r'^addon/tags/edit/$', 'app.addons.views.setAddonsTags'),

    (r'^people/(?P<username>[^\.^/]+)/$','app.forum.views.profile'),
    (r'^quote/$','app.forum.views.CreateQuote'),
    
    (r'^imail/sendmail/(?P<member_id>[^\.^/]+)/$','app.forum.views.sendMail'),
    (r'^imail/page/(?P<page>[^\.^/]+)/$','app.forum.views.getMail'),
    (r'^imail/view/(?P<mail_id>[^\.^/]+)/$','app.forum.views.viewMail'),
)

